package com.hc.music.service;

import com.hc.music.common.R;
import com.hc.music.entity.User;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

public interface UserService {
    R addUser(User registryRequest);

    R updateUserMsg(User updateRequest);

    R updateUserAvator(MultipartFile avatorFile, int id);

    R updatePassword(User updatePasswordRequest);

    boolean existUser(String username);

    R verityPasswd(String username, String password);

    R deleteUser(Integer id);

    R allUser();

    R userOfId(Integer id);

    R loginStatus(User loginRequest, HttpSession session);
    R loginEmailStatus(User loginRequest, HttpSession session);
    User findByEmail (String email);
    R updatePassword01(User updatePasswordRequest);
}
